package com.guslegend.spzx.manager.service;

import com.github.pagehelper.PageInfo;
import com.guslegend.spzx.model.dto.system.LoginDto;
import com.guslegend.spzx.model.dto.system.SysUserDto;
import com.guslegend.spzx.model.entity.system.SysUser;
import com.guslegend.spzx.model.entity.user.UserInfo;
import com.guslegend.spzx.model.vo.system.LoginVo;

/**
 * @author: guslegend
 * @description: SysUser业务层代码实现
 * @create: 2025-04-29 09:04
 **/
public interface SysUserService {

    /**
     * 根据用户名查询用户数据
     * @return
     */
    public abstract LoginVo login(LoginDto loginDto) ;

    SysUser getUserInfo(String token);

    void logout(String token);

    public PageInfo<UserInfo> findByPage(SysUserDto sysUserDto, Integer pageNum, Integer pageSize);

    void saveSysUser(SysUser sysUser);

    public void updateSysUser(SysUser sysUser);

    void deleteById(Long userId);
}

